let tables = [{
  name: 'chili_study',
  label: '辣椒科研数据表'
}, {
  name: 'flower_chili_study',
  label: '花椒科研数据表'
}, {
  name: 'ingredient',
  label: '配料展开表'
}, {
  name: 'nutrition_contain',
  label: '营养成分表'
}, {
  name: 'pack_maintain',
  label: '产品包装维护信息表'
}, {
  name: 'product_maintain',
  label: '产品维护表'
}, {
  name: 'shape_desc',
  label: '原料外形描述表'
}, {
  name: 'source_check',
  label: '原料批次入场检验表'
}]

const documents = [
  {
    name: 'learning_materials_doc',
    label: '学习资料'
  }, {
    name: 'scientific_research_doc',
    label: '科研报告'
  }
]


const decodeTableName = (en) => {
  return tables.find(ele => ele.name === en).label
}

export { decodeTableName, tables, documents}